<script type="text/javascript" language="JavaScript" src="/pw8/js/pw_ajax.js"></script>
<script type="text/javascript" LANGUAGE="JavaScript" src="/pw8/js/core/core.js"></script>
<script type="text/javascript" LANGUAGE="JavaScript" src="/pw8/js/core/tab.js"></script>
<div class="sideD" style="width:760px">
	<div class="boxA cc">
		<h2>
<span class="mr10">相册~~</span>
		</h2>
<div style="min-height:480px;_height:480px;">
<style type="text/css">
/*兼容：当站点有侧栏是，相册的内容页展现方式变更*/
.sidePhoto{width:740px;;float:none;height:120px;}
.galbum_photo .prePhoto{float:left;}
.galbum_photo .nextPhoto{float:right;}
.galbum_photo .g_listA{height:120px;float:left;}
.galbum_photo .g_listA li{display:inline;overflow:hidden;width:120px;}
.galbum_photo .prePhoto,.galbum_photo .nextPhoto{width:20px;margin-top:33px;}
.galbum_photo .prePhoto a,.galbum_photo .nextPhoto a{width:14px;height:38px;}
.galbum_photo .prePhoto a{background-position:0 0;}
.galbum_photo .prePhoto a:hover{ background-position:-40px 0;}
.galbum_photo .nextPhoto a{background-position:-20px 0;}
.galbum_photo .nextPhoto a:hover{background-position:-60px 0;}
</style>
		<div class="p10">
<div class="fr">
		<a href="apps.php?q=collection&a=favor&type=photo&ajax=1&id=2221&ptype=photo" onClick="return ajaxurl(this)" class="mr10 allCollect">收藏</a>
      <!--<a href="javascript:;" onclick="sendmsg('operate.php?action=toweibo&ajax=1&type=photo&id=2221','',this.id);" class="allForward mr20">新鲜事</a>-->
                </div>

		<a class="b" href="apps.php?q=photos&uid=3">admin的相册</a> &raquo; <a href="apps.php?q=photos&uid=3&a=album&aid=219" class="b">消防图片</a> <span class="s5 b">(184)</span>
</div>
<div class="sidePhoto">
	<div class="p_lr_10">
	<div class="galbum_photo" id="imgtop">
		<div id="img_list">
<div class="prePhoto mb5"><a onClick="return ajaxpage('apps.php?q=photos&uid=3&a=next&pid=2221','pre');">上一张</a></div>
		<ul class="g_listA cc" id="imglist_2223">
		<li ><div class="aimg"><a href="apps.php?q=photos&uid=3&a=view&pid=2223#imgtop"><img src="attachment/photo/Mon_1103/s_219_39cb12996705377f41b23a9620178.jpg" onload="if(this.width>100){this.width = 100;} else if(this.height>100){this.height=100;}" /></a></div></li>
	</ul>
		<ul class="g_listA cc" id="imglist_2222">
		<li ><div class="aimg"><a href="apps.php?q=photos&uid=3&a=view&pid=2222#imgtop"><img src="attachment/photo/Mon_1103/s_219_958612996705321766c9a90776a25.jpg" onload="if(this.width>100){this.width = 100;} else if(this.height>100){this.height=100;}" /></a></div></li>
	</ul>
		<ul class="g_listA cc" id="imglist_2221">
		<li class="current"><div class="aimg"><a href="apps.php?q=photos&uid=3&a=view&pid=2221#imgtop"><img src="attachment/photo/Mon_1103/s_219_cd2b1299670528da717756a2e7a21.jpg" onload="if(this.width>100){this.width = 100;} else if(this.height>100){this.height=100;}" /></a></div></li>
	</ul>
		<ul class="g_listA cc" id="imglist_2220">
		<li ><div class="aimg"><a href="apps.php?q=photos&uid=3&a=view&pid=2220#imgtop"><img src="attachment/photo/Mon_1103/s_219_04d312996705265c48355860af1df.jpg" onload="if(this.width>100){this.width = 100;} else if(this.height>100){this.height=100;}" /></a></div></li>
	</ul>
		<ul class="g_listA cc" id="imglist_2219">
		<li ><div class="aimg"><a href="apps.php?q=photos&uid=3&a=view&pid=2219#imgtop"><img src="attachment/photo/Mon_1103/s_219_79bb1299670519bfdd2d92e93a9e0.jpg" onload="if(this.width>100){this.width = 100;} else if(this.height>100){this.height=100;}" /></a></div></li>
	</ul>

	<div class="nextPhoto"><a onClick="return ajaxpage('apps.php?q=photos&uid=3&a=pre&pid=2221','next');">下一张</a></div>
		
		</div>
	</div>
	</div>
</div>
<div class="contPhoto" style="width:745px;">
<div class="p_lr_10">
	<div class="galbum_photo_con mb10">
		<div class="pr">
		<a id="next" onClick="return ajaxpage('apps.php?q=photos&uid=3&a=next&pid=2221','pre');" class="aPre" style="cursor:url(u/images/pre.cur),auto;" title="上一张"></a>
		<a id="pre" onClick="return ajaxpage('apps.php?q=photos&uid=3&a=pre&pid=2221','next');" class="aNext" style="cursor:url(u/images/next.cur),auto;" title="下一张"></a>
		<table cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;">
<tr>
	<td class="prePhoto">
		<div class="p15">
		<a href="javascipt:;" class="fl">上一张</a>
		</div>
	</td>
	<td height="400" style="vertical-align:middle">
		<div class="tac p20" id="img-width"><img id="imgview" src="attachment/photo/Mon_1103/219_cd2b1299670528da717756a2e7a21.jpg" w="156" h="156" /></div>
	</td>
	<td class="nextPhoto">
		<div class="p15">
		<a href="javascipt:;" class="fr">下一张</a>
		</div>
	</td>
</tr>
		</table>
		</div>
		<div class="onePhototip">
<div class="fr s7"><a href="javascript:;" onClick="ImgClick();" class="s7">原图</a>&nbsp;┊&nbsp;<a href="javascript:;" onClick="sendmsg('pw_ajax.php?action=report&type=photo&tid=2221&pid=3','',this.id);" id="report_photo" class="s7">举报</a>
</div>
<div><span class="mr20">【EHS.CN】消防漫画20080927105311.jpg</span><span class="mr20">上传于2011-03-09 19:35</span><span class="mr20">浏览(13)</span><span class="mr20">评论(0)</span></div>
		</div>
	</div>
	
<script language="JavaScript" src="js/pw_photolist.js"></script>
<script language="JavaScript">
var photolist = new photoList('img_list','2221','219');

function toBreakWord(intLen){
var obj=document.getElementById("ff");
var strContent=obj.innerHTML;
var strTemp="";
while(strContent.length>intLen){
strTemp+=strContent.substr(0,intLen)+"<br>";
strContent=strContent.substr(intLen,strContent.length);
}
strTemp+=""+strContent;
obj.innerHTML=strTemp;
}
if(document.getElementById  &&  !document.all)  toBreakWord(100)
</script>
<div class="c"></div>
<script language="JavaScript">
var imgMaxWidth=600;
var content = document.getElementById("img-width");
ImgLoad(content);

function ImgClick()
{
	var url = getObj('imgview');
	if (url.parentElement){
		if (url.parentElement.tagName!="A"){
window.open(url.src);
		}
	}else{
		window.open(url.src);
	}
}

function ajaxpage(url,type) {
	var tourl = 'apps.php?q=photos&uid=3&a=view';
	ajax.send(url,'',function() {
		var rText = ajax.request.responseText.split('\t');
		if (rText[0] == 'ok') {
if (rText[1]) {
	window.location.href = tourl + '&pid=' + rText[1]+'#imgtop';
} else {
	var message = type == 'next' ? '已经是最后一张照片' : '已经是第一张照片';
                showDialog('warning',message,2);
}
		} else {
ajax.guide();
		}
	});
	return false;
}

function bbimg()
{
	if (event.ctrlKey){
		var zoom=parseInt(this.style.zoom, 10)||100;
		zoom+=event.wheelDelta/12;
		if (zoom>0) this.style.zoom=zoom+'%';
		return false;
	}else{
		return true;
	}
}
function ImgLoad(obj){
	for(var i=0;i<obj.getElementsByTagName("img").length;i++){
		var o=obj.getElementsByTagName("img")[i];
		if (o.getAttribute('w')>imgMaxWidth){
if (o.style.width){
	o.style.width="";
}
o.width=imgMaxWidth;
o.removeAttribute("height");
o.style.cursor="hand";
o.vspace=5;
o.resized=1;
		}else{
o.width=o.getAttribute('w');
		}
		setTimeout(function(){
getElementsByClassName('aPre')[0].style.height=getElementsByClassName('aNext')[0].style.height=Math.max(o.height,400)+'px';
		},400);
	}
}
</script>
<script language="JavaScript" src="js/app_comment.js"></script>
<div>

<script language="javascript">
	var charset = 'utf-8';
	var imgpath   = 'images';
	var stylepath = '';
	function addsmile(NewCode){
	    document.FORM.atc_content.value += ' [s:'+NewCode+'] ';
	}
	
	var version = navigator.appVersion.split(";");
	version = version[1].replace(/[ ]/g,"");
	if (navigator.appName == "Microsoft Internet Explorer" && version=="MSIE6.0") {
		window.onerror = function () {return true;}
	}
</script>
		<script language="JavaScript" src="data/bbscache/face.js"></script>
<div id="menu_show" style="display:none;"></div>
<div id="menu_face" class="menu" style="display:none;"></div>
<script language="JavaScript" src="js/post.js"></script>
<div id="comment_container">
<form method="POST" name="FORM" action="" onSubmit="return false;">
    <div class="minieitor_pw cc">
        <ul class="miniUl">
            <li><a href="javascript:" title="插入url链接" class="milink_pw" onClick="createLinkBox();" id="createlinkid">插入url链接</a></li>
            <li><a href="javascript:" title="添加表情" class="mishow_pw" id="td_face" onClick="showDefault();" unselectable="on">添加表情</a></li>
        </ul>
        <div class="minitextarea">
            <textarea maxlength="200" id="comm_input_photo_2221_0" name="atc_content"></textarea>
        <div class="c"></div>
        </div>
        <div class="c"></div>
    </div>
    <span class="btn" style="margin:0 15px 0 0;"><span><button type="submit" onClick="PW_Comment.sendComment('photo',2221,0,2);">提 交</button></span></span>
<div id="linkbox" style="display:none;"></div>
</form>
		<div class="mb10 c">&nbsp;</div>
<div class="dlA">
<div id="createcommentbox"></div>
</div>
<div class="mt10 cc"></div>
</div>
</div>
</div>
		</div>
		</div>
	</div>
</div>
<script language="JavaScript">
function ajaxdel(pid) {
	var u = '';
	ajax.send('apps.php?q=photos&uid=3&a=delphoto&pid='+pid,'',function() {
		var rText = ajax.request.responseText.split('	');
		if (rText[0] == 'ok') {
window.location = 'apps.php?q=photos&uid=3&a=album&aid='+rText[1];
		} else {
ajax.guide();
		}
	});
	return false;
}
function ajaxurl(o) {
	read.obj = o;
	ajax.send(o.href,'',ajax.get);
	return false;
}
</script>

<script language="JavaScript" src="js/global.js"></script>
<script language="JavaScript" src="js/app_global.js"></script>
<script language="JavaScript">
var openmenu = {};
window.attachEvent('onload',function(){read.InitMenu()});
</script>
</div>